package com.gaojiabao.panghu.service;

import com.gaojiabao.panghu.data.dto.ConditionDto;
import com.gaojiabao.panghu.data.pojo.Community;
import com.gaojiabao.panghu.utils.Result;

/**
 * @Author: gaojiabao
 * @Date: 2024/11/3 16:00
 */
public interface CommunityService {
    //分页查询小区数据
    Result<?> getCommunityList(Integer currentPage, Integer pageSize, ConditionDto conditionDto);

    //根据id查询小区的数据
    Result<?> getCommunityById(String id);

    //根据id逻辑删除小区数据
    Result<?> deleteCommunityById(String id);

    //编辑小区
    Result<?> updateCommunity(Community community);

    //新增小区数据
    Result<?> addCommunity(Community community);

    //社区下拉框数据
    Result<?> selectOption();
}
